<!-- $Id: ads_list.htm 14216 2008-03-10 02:27:21Z testyang $ -->
{if $full_page} {include file="pageheader.htm"} {insert_scripts
files="../js/utils.js,listtable.js"}

<form method="post" action="category_rec.php" name="listForm"
	onsubmit="return selectAll(this);"><!-- start ads list -->
<div class="list-div" id="listDiv">{/if}
<table cellpadding="3" cellspacing="1">
	<tr>
		<th>今日上线</th>
		<th>&nbsp;</th>
		<th>推荐品牌</th>
	</tr>
	<tr>
		<td align="center"><select multiple="multiple"
			style="height: 300px; width: 300px" id="lselect">
			{foreach from=$categorys item=item}
			<option value="{$item.cat_id}">{$item.cat_name}</option>
			{/foreach}
		</select></td>
		<td align="center">
		<div style="float: left; margin-left: 20px;">
		<ul style="list-style: none; margin: 0px; padding: 0px;">
			<li><input type="button" value="顶部" onclick="mTop('rselect');" /></li>
			<li><input type="button" value="上移" onclick="mUp('rselect');" /></li>
			<li><input type="button" value="&gt;&gt;"
				onclick="giveOrUndoAll('lselect','rselect','left');" /></li>
			<li><input type="button" value="&gt;"
				onclick="moveoption('lselect','rselect','left');" /></li>
			<li><input type="button" value="&lt;"
				onclick="moveoption('rselect','lselect','right');" /></li>
			<li><input type="button" value="&lt;&lt;"
				onclick="giveOrUndoAll('rselect','lselect','right');" /></li>
			<li><input type="button" value="下移" onclick="mDown('rselect');" /></li>
			<li><input type="button" value="底部"
				onclick="mBottom('rselect');" /></li>
		</ul>
		</div>
		</td>
		<td align="center"><select id="rselect" name="categorys[]"
			multiple="multiple" style="height: 300px; width: 300px">
			{foreach from=$rec_category item=item}
			<option value="{$item.cat_id}">{$item.cat_name}</option>
			{/foreach}
		</select></td>
	</tr>
	<tr>
		<td colspan="3" align="center"><input type="submit"
			class="button" value="{$lang.button_submit}" /> <input type="reset"
			class="button" value="{$lang.button_reset}" /> <input type="hidden"
			name="act" value="{$form_act}" /> <input type="hidden" name="cid"
			value="{$cid}" /> <input type="hidden" name="id" value="{$id}" /></td>
	</tr>
</table>

{if $full_page}</div>
<!-- end ad_position list --></form>

{include file="pagefooter.htm"} {/if}
